<?php

namespace addons\qingdongams\controller;


/**
 * 文本模板
 * @apiDefine Texttemplate
 * @category app\api\controller
 * @author askSword <773766958@qq.com>
 */
class Texttemplate extends StaffApi {
	protected $noNeedLogin = [];
	protected $noNeedRight = [];

	//获取模板
	public function getText() {
		$type    = input('type');
		$content = \addons\qingdongams\model\TextTemplate::where(['type' => $type])->value('content');
		$content = json_decode($content, true);

		$this->success('请求成功', ['template' => $content]);
	}
}
